package old_api

type CamidReq struct {
	Camid string `json:"camid" form:"camid" query:"camid" binding:"required"`
}
type ImgReq struct {
	Img string `json:"img" form:"img" query:"img" binding:"required"`
}
type TimeReq struct {
	CamidReq
	Time string `json:"time" form:"time" query:"time" binding:"required"` //YYYY-MM-DD-HH
}

type DateReq struct {
	CamidReq
	Date string `json:"date" form:"date" query:"date" binding:"required"` //YYYY-MM-DD
}

type VideoSearchReq struct {
	CamidReq
	Begin string `json:"begin" form:"begin" query:"begin" binding:"required"`
	End   string `json:"end" form:"end" query:"end" binding:"required"`
}

type CameraConnReq struct {
	Camid    string `json:"camid" form:"camid" query:"camid" binding:"omitempty"`
	Addx     string `json:"addx" query:"addx" form:"addx" binding:"omitempty"`
	Username string `json:"username" query:"username" form:"username" binding:"omitempty"`
	Password string `json:"password" query:"password" form:"password" binding:"omitempty"`
}
